package com.bwie.service.impl;

import com.bwie.domain.Food;
import com.bwie.mapper.FoodMapper;
import com.bwie.service.IFoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Ms.发发
 * @ClassName FoodServiceImpl
 * @Date 2024/12/18 8:44
 * @Description
 **/
@Service
public class FoodServiceImpl implements IFoodService {

    @Autowired
    private FoodMapper foodMapper;

    @Override
    public int insert(Food food) {
        return foodMapper.insert(food);
    }

    @Override
    public List<Food> selectAll() {
        return foodMapper.selectAll();
    }
}
